<?php
	include("config.php");
	
	$query="select * from `CART` where USER_ID='" . $_POST['userId'] . "'";
	$rs=mysql_query($query, $conn);
	
	echo "<cart>\n";
	while($row = mysql_fetch_assoc($rs)) {
		echo "<cartItems>\n";
		echo "<cartId>" . $row['CART_ID'] . "</cartId>\n";
		echo "<userId>" . $row['USER_ID'] . "</userId>\n";
		echo "<powerId>" . $row['POWER_ID'] . "</powerId>\n";
		echo "</cartItems>\n";
	}
	echo "</cart>\n";
?>